﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Teacher
    {
        string Aa;
        string Bb;
        string Cc;
        string Dd;
        string teachera = "唐僧";
        public string Aaa
        {
            get { return this.Aa; }
            set { this.Aa = value; }
        }
        public string Bbb
        {
            get { return this.Bb; }
            set { this.Bb = value; }
        }
        public string Ccc
        {
            get { return this.Cc; }
            set { this.Cc = value; }
        }
        public string Ddd
        {
            get { return this.Dd; }
            set { this.Dd = value; }
        }
        public void Text() {

            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.Aa, teachera);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.Bb, teachera);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.Cc, teachera);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.Dd, teachera);
            Test1();
            Console.WriteLine("--------------------------------------------------------------");
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.Aa, teachera);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.Bb, teachera);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.Cc, teachera);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.Dd, teachera);
        }

        private void Test1()
        {
            teachera = "嫦娥";
        }
    }
}
